const SUPPORTED_LANGS = {
  'zh-CN': () => import('./zh-CN.json'),
  'en-US': () => import('./en-US.json'),
  'fr-FR': () => import('./fr-FR.json') // 新增法语
}

export const loadLang = async (lang) => {
  const defaultMessages = await SUPPORTED_LANGS['zh-CN']()
  
  return {
    ...defaultMessages,
    ...(await SUPPORTED_LANGS[lang]?.() || {})
  }
}